﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="goods_type.aspx.cs" Inherits="WebSite.admin.product.goods_type" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>上海万礼通网络科技后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.maintitle.innerHTML = "商品管理";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>商品属性。"
    </script>
    <script language='javascript'>
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';
            }
        }
	</script>
	<script type="text/javascript" language="javascript">
	    var i = 1
	    function addFile() {
	        if (i < 8) {
	            var str = '<BR>&nbsp;&nbsp;&nbsp; 名称：<input name="text" type="text" maxlength="20" /> <input type="file" name="File" runat="server" style="width: 300px"/>'
	            document.getElementById('MyFile').insertAdjacentHTML("beforeEnd", str)

	        }
	        else {
	            alert("您一次最多只能上传8条！")
	        }
	        i++
	    } 
   </script> 
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <asp:Panel ID="Panel5" runat="server" Width="100%"> 
  <table width="80%" border="0" cellpadding="0" cellspacing="0">
    <!-- 图片列表 -->
    <tr>
      <td>
      <asp:DataList ID="DataList1" runat="server" RepeatColumns="1" CellPadding="1" ForeColor="#333333" Height="96px" Width="98%">
       <ItemTemplate>
               <!--a href="javascript:;" onclick="if (confirm('您确实要删除该类别吗？')) window.location.href='goods_type.aspx?sid=<%# DataBinder.Eval(Container.DataItem, "shuxinid")%>&action=del';">[-]</a-->
               名称：<input name="content_<%# DataBinder.Eval(Container.DataItem, "shuxinid")%>" value="<%# DataBinder.Eval(Container.DataItem, "shuxiname")%>"/>
             
        </ItemTemplate>
      </asp:DataList>    
      </td>
      </tr>
    <!-- 上传图片 -->
    <tr style="display:none;">
      <td align="left"><P id="MyFile">
      <a onclick="addFile()" href="#">[+]</a> 名称：<input name="text" type="text"  maxlength="20" /> <input id="File8" type="file" name="File" runat="server" style="width: 300px"/>
        </P></td> 
    </tr>
    <tr>
      <td height="50" align="center"><table width="90%" height="22" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="left" style="height: 24px; ">
          <asp:ImageButton ID="ImageButton1" ImageUrl="../images/buttom-02.gif" runat="server" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
          </tr>
      </table></td>
    </tr>
  </table>
  </asp:Panel>
  </td>
</tr>
</table>
</center>
    </div>
    </form>
</body>
</html>
